package com.springboot.asyn.service;

import org.springframework.core.io.ClassPathResource;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

//@Service
//@Async
public class UserService {
    @Scheduled(cron = "0 0 0 * * ? *")

    public void test() throws InterruptedException {
        Thread.sleep(8000);
        System.out.println("userService");
    }

}
